<script setup>

</script>

<template>
  <button class="fancy-btn">
    <slot></slot> <!-- 插槽出口 -->
  </button>
</template>

<style scoped>
.fancy-btn {
  color: #fff;
  background: linear-gradient(315deg, #42d392, #647eff);
  border: none;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 8px;
  cursor: pointer;
}
</style>